package com.yzh.wanandroid.network.retrofit.responsebean

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable


data class ListData(
    @get:Bindable val apkLink: String,
    @get:Bindable val audit: Int,
    @get:Bindable val author: String,
    @get:Bindable val canEdit: Boolean,
    @get:Bindable val chapterId: Int,
    @get:Bindable val chapterName: String,
    @get:Bindable val collect: Boolean,
    @get:Bindable val courseId: Int,
    @get:Bindable val desc: String,
    @get:Bindable val descMd: String,
    @get:Bindable val envelopePic: String,
    @get:Bindable val fresh: Boolean,         // 控制显示“新”字
    @get:Bindable val host: String,
    @get:Bindable val id: Int,
    @get:Bindable val link: String,
    @get:Bindable val niceDate: String,
    @get:Bindable val niceShareDate: String,
    @get:Bindable val origin: String,
    @get:Bindable val prefix: String,
    @get:Bindable val projectLink: String,
    @get:Bindable val publishTime: Long,
    @get:Bindable val realSuperChapterId: Int,
    @get:Bindable val selfVisible: Int,
    @get:Bindable val shareDate: Long,
    @get:Bindable val shareUser: String,
    @get:Bindable val superChapterId: Int,
    @get:Bindable val superChapterName: String,
    @get:Bindable val tags: List<Tag>,
    @get:Bindable val title: String,
    @get:Bindable val type: Int,
    @get:Bindable val userId: Int,
    @get:Bindable val visible: Int,
    @get:Bindable val zan: Int,
    @get:Bindable val top: String
) : BaseObservable()

data class Tag(
    @get:Bindable val name: String,
    @get:Bindable val url: String
) : BaseObservable()